package com.yigo.cuc.infra.repo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.tangzc.mpe.autotable.annotation.Column;
import com.tangzc.mpe.autotable.annotation.ColumnId;
import com.tangzc.mpe.autotable.annotation.Table;
import com.tangzc.mpe.autotable.strategy.mysql.data.MysqlTypeConstant;
import com.yigo.framework.base.BasePO;
import lombok.Data;

@Data
@Table(value = "cuc_customer", comment = "客户表")
public class CustomerPO extends BasePO {
    /**
     * 主键Id
     */
    @ColumnId(mode = IdType.ASSIGN_ID, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 20)
    private Long id;
    /**
     * 用户名
     */
    @Column(comment = "用户名", length = 30, notNull = true)
    private String userName;
    @Column(comment = "昵称", length = 30, notNull = false)
    private String nickName;
    /**
     * 密码
     */
    @Column(comment = "密码", length = 30, notNull = true)
    private String password;
    /**
     * 手机号
     */
    @Column(comment = "手机号", length = 30, notNull = true)
    private String phone;
    /**
     * 邮箱
     */
    @Column(comment = "邮箱", length = 30, notNull = true)
    private String email;
}
